package com.tanhua.dubbo.api;

import com.tanhua.model.enums.CommentType;
import com.tanhua.model.mongo.Comment;

import java.util.List;

public interface CommentApi {
    //发布评论并获取数量
    Integer save(Comment comment1);
    //分页查询
    List<Comment> findComments(String movementId, CommentType comment, Integer page, Integer pagesize);
    //添加comment
    boolean hasComment(String movementId, Long userId, CommentType commentType);
    //删除comment
    Integer delete(Comment comment);
    //根据操作Id返回
    List<Comment> findUserIdComment(Long userId, CommentType comment, Integer page, Integer pagesize);
}
